package org.example.po;

public class Response {
    private int code;
    private int subcode;
    private int exType;
    private String appName;
    private String msg;
    private String errMsg;
    private String  data;
    private boolean fail;
    private boolean success;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getSubcode() {
        return subcode;
    }

    public void setSubcode(int subcode) {
        this.subcode = subcode;
    }

    public int getExType() {
        return exType;
    }

    public void setExType(int exType) {
        this.exType = exType;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public boolean isFail() {
        return fail;
    }

    public void setFail(boolean fail) {
        this.fail = fail;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    @Override
    public String toString() {
        return "Response{" +
                "code=" + code +
                ", subcode=" + subcode +
                ", exType=" + exType +
                ", appName='" + appName + '\'' +
                ", msg='" + msg + '\'' +
                ", errMsg='" + errMsg + '\'' +
                ", data='" + data + '\'' +
                ", fail=" + fail +
                ", success=" + success +
                '}';
    }
}
